/*
 * Copyright 2010 Assert Developments
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * 	http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package be.ad.coffeebreak.web;

/**
 * Constants for our web application.
 *
 * @author Stefan Bangels
 */
public interface WebConstants {

    // Methods
    public static final String METHOD_GET = "GET";
    public static final String METHOD_POST = "POST";

    // Attributes
    public static final String ATTRIBUTE_INJECTOR = "injector";
    public static final String ATTRIBUTE_ERROR_EXCEPTION = "exception";
    public static final String ATTRIBUTE_ERROR_MESSAGE = "message";
    public static final String ATTRIBUTE_ERROR_STATUS_CODE = "statusCode";

    // Views
    public static final String VIEW_BAD_REQUEST = "/jsp/errors/bad-request.jsp";
    public static final String VIEW_FORBIDDEN = "/jsp/errors/forbidden.jsp";
    public static final String VIEW_INTERNAL_SERVER_ERROR = "/jsp/errors/internal-server-error.jsp";
    public static final String VIEW_METHOD_NOT_ALLOWED = "/jsp/errors/method-not-allowed.jsp";
    public static final String VIEW_NOT_FOUND = "/jsp/errors/not-found.jsp";
    public static final String VIEW_UNAUTHORIZED = "/jsp/errors/unauthorized.jsp";
    public static final String VIEW_ACCOUNT = "/jsp/secure/account.jsp";

    // Resources
    public static final String[] LANGUAGES = new String[]{"en", "nl"};
    public static final String[] COUNTRIES = new String[]{"be", "nl", "us"};
    public static final String[] TIMEZONES = new String[]{"GMT-2", "GMT-1", "GMT+0", "GMT+1", "GMT+2"};

}
